package com.grass.p019lv.databinding;

import android.text.TextUtils;
import android.util.SparseIntArray;
import android.view.View;
import android.widget.LinearLayout;
import android.widget.TextView;
import androidx.appcompat.widget.Toolbar;
import androidx.databinding.DataBindingComponent;
import androidx.databinding.ViewDataBinding;
import androidx.databinding.adapters.TextViewBindingAdapter;
import com.androidsa.bttsddka.R;
import com.androidx.p013lv.base.bean.NoticeBean;
import com.androidx.p013lv.base.utils.TimeUtils;
import com.grass.p019lv.activity.MessageActivity;
import com.grass.p019lv.generated.callback.OnClickListener;

/* renamed from: com.grass.lv.databinding.ActivityMessageBindingImpl */
public class ActivityMessageBindingImpl extends ActivityMessageBinding implements OnClickListener.Listener {
    private static final ViewDataBinding.IncludedLayouts sIncludes = null;
    private static final SparseIntArray sViewsWithIds;
    private final View.OnClickListener mCallback56;
    private final View.OnClickListener mCallback57;
    private final View.OnClickListener mCallback58;
    private final View.OnClickListener mCallback59;
    private final View.OnClickListener mCallback60;
    private final View.OnClickListener mCallback61;
    private final View.OnClickListener mCallback62;
    private long mDirtyFlags;
    private final LinearLayout mboundView0;
    private final TextView mboundView1;
    private final View mboundView10;
    private final LinearLayout mboundView11;
    private final TextView mboundView2;
    private final TextView mboundView3;
    private final TextView mboundView4;
    private final LinearLayout mboundView5;
    private final LinearLayout mboundView6;
    private final TextView mboundView7;
    private final TextView mboundView8;
    private final TextView mboundView9;

    static {
        SparseIntArray sparseIntArray = new SparseIntArray();
        sViewsWithIds = sparseIntArray;
        sparseIntArray.put(R.id.toolbar, 12);
        sViewsWithIds.put(R.id.tv_contact_official, 13);
    }

    public ActivityMessageBindingImpl(DataBindingComponent dataBindingComponent, View view) {
        this(dataBindingComponent, view, mapBindings(dataBindingComponent, view, 14, sIncludes, sViewsWithIds));
    }

    private ActivityMessageBindingImpl(DataBindingComponent dataBindingComponent, View view, Object[] objArr) {
        super(dataBindingComponent, view, 1, (Toolbar) objArr[12], (TextView) objArr[13]);
        this.mDirtyFlags = -1;
        LinearLayout linearLayout = (LinearLayout) objArr[0];
        this.mboundView0 = linearLayout;
        linearLayout.setTag(null);
        TextView textView = (TextView) objArr[1];
        this.mboundView1 = textView;
        textView.setTag(null);
        View view2 = (View) objArr[10];
        this.mboundView10 = view2;
        view2.setTag(null);
        LinearLayout linearLayout2 = (LinearLayout) objArr[11];
        this.mboundView11 = linearLayout2;
        linearLayout2.setTag(null);
        TextView textView2 = (TextView) objArr[2];
        this.mboundView2 = textView2;
        textView2.setTag(null);
        TextView textView3 = (TextView) objArr[3];
        this.mboundView3 = textView3;
        textView3.setTag(null);
        TextView textView4 = (TextView) objArr[4];
        this.mboundView4 = textView4;
        textView4.setTag(null);
        LinearLayout linearLayout3 = (LinearLayout) objArr[5];
        this.mboundView5 = linearLayout3;
        linearLayout3.setTag(null);
        LinearLayout linearLayout4 = (LinearLayout) objArr[6];
        this.mboundView6 = linearLayout4;
        linearLayout4.setTag(null);
        TextView textView5 = (TextView) objArr[7];
        this.mboundView7 = textView5;
        textView5.setTag(null);
        TextView textView6 = (TextView) objArr[8];
        this.mboundView8 = textView6;
        textView6.setTag(null);
        TextView textView7 = (TextView) objArr[9];
        this.mboundView9 = textView7;
        textView7.setTag(null);
        setRootTag(view);
        this.mCallback59 = new OnClickListener(this, 4);
        this.mCallback57 = new OnClickListener(this, 2);
        this.mCallback62 = new OnClickListener(this, 7);
        this.mCallback60 = new OnClickListener(this, 5);
        this.mCallback58 = new OnClickListener(this, 3);
        this.mCallback56 = new OnClickListener(this, 1);
        this.mCallback61 = new OnClickListener(this, 6);
        invalidateAll();
    }

    @Override // androidx.databinding.ViewDataBinding
    public void invalidateAll() {
        synchronized (this) {
            this.mDirtyFlags = 128;
        }
        requestRebind();
    }

    @Override // androidx.databinding.ViewDataBinding
    public boolean hasPendingBindings() {
        synchronized (this) {
            if (this.mDirtyFlags != 0) {
                return true;
            }
            return false;
        }
    }

    @Override // androidx.databinding.ViewDataBinding
    public boolean setVariable(int i, Object obj) {
        if (170 == i) {
            setStatus((Integer) obj);
        } else if (9 == i) {
            setBackText((String) obj);
        } else if (124 == i) {
            setNoticeBean((NoticeBean) obj);
        } else if (34 != i) {
            return false;
        } else {
            setClick((MessageActivity.OnClick) obj);
        }
        return true;
    }

    @Override // com.grass.p019lv.databinding.ActivityMessageBinding
    public void setStatus(Integer num) {
        this.mStatus = num;
        synchronized (this) {
            this.mDirtyFlags |= 2;
        }
        notifyPropertyChanged(170);
        super.requestRebind();
    }

    @Override // com.grass.p019lv.databinding.ActivityMessageBinding
    public void setBackText(String str) {
        this.mBackText = str;
        synchronized (this) {
            this.mDirtyFlags |= 4;
        }
        notifyPropertyChanged(9);
        super.requestRebind();
    }

    @Override // com.grass.p019lv.databinding.ActivityMessageBinding
    public void setNoticeBean(NoticeBean noticeBean) {
        updateRegistration(0, noticeBean);
        this.mNoticeBean = noticeBean;
        synchronized (this) {
            this.mDirtyFlags |= 1;
        }
        notifyPropertyChanged(124);
        super.requestRebind();
    }

    @Override // com.grass.p019lv.databinding.ActivityMessageBinding
    public void setClick(MessageActivity.OnClick onClick) {
        this.mClick = onClick;
        synchronized (this) {
            this.mDirtyFlags |= 8;
        }
        notifyPropertyChanged(34);
        super.requestRebind();
    }

    /* access modifiers changed from: protected */
    @Override // androidx.databinding.ViewDataBinding
    public boolean onFieldChange(int i, Object obj, int i2) {
        if (i != 0) {
            return false;
        }
        return onChangeNoticeBean((NoticeBean) obj, i2);
    }

    private boolean onChangeNoticeBean(NoticeBean noticeBean, int i) {
        if (i == 0) {
            synchronized (this) {
                this.mDirtyFlags |= 1;
            }
            return true;
        } else if (i == 121) {
            synchronized (this) {
                this.mDirtyFlags |= 16;
            }
            return true;
        } else if (i == 46) {
            synchronized (this) {
                this.mDirtyFlags |= 32;
            }
            return true;
        } else if (i != 39) {
            return false;
        } else {
            synchronized (this) {
                this.mDirtyFlags |= 64;
            }
            return true;
        }
    }

    /* access modifiers changed from: protected */
    /* JADX WARNING: Removed duplicated region for block: B:102:0x0162  */
    /* JADX WARNING: Removed duplicated region for block: B:107:? A[RETURN, SYNTHETIC] */
    /* JADX WARNING: Removed duplicated region for block: B:22:0x003f  */
    /* JADX WARNING: Removed duplicated region for block: B:31:0x0054  */
    /* JADX WARNING: Removed duplicated region for block: B:34:0x0067  */
    /* JADX WARNING: Removed duplicated region for block: B:64:0x00be  */
    /* JADX WARNING: Removed duplicated region for block: B:67:0x00cc  */
    /* JADX WARNING: Removed duplicated region for block: B:68:0x00d1  */
    /* JADX WARNING: Removed duplicated region for block: B:71:0x00d9  */
    /* JADX WARNING: Removed duplicated region for block: B:74:0x00e0  */
    /* JADX WARNING: Removed duplicated region for block: B:77:0x00e7  */
    /* JADX WARNING: Removed duplicated region for block: B:79:0x00ec  */
    /* JADX WARNING: Removed duplicated region for block: B:82:0x00f4  */
    /* JADX WARNING: Removed duplicated region for block: B:87:0x0104  */
    /* JADX WARNING: Removed duplicated region for block: B:90:0x0139  */
    /* JADX WARNING: Removed duplicated region for block: B:93:0x0145  */
    /* JADX WARNING: Removed duplicated region for block: B:96:0x014e  */
    /* JADX WARNING: Removed duplicated region for block: B:99:0x0157  */
    @Override // androidx.databinding.ViewDataBinding
    public void executeBindings() {
        long j;
        int i;
        long j2;
        boolean z;
        boolean z2;
        String str;
        String str2;
        String str3;
        String str4;
        long j3;
        String str5;
        long j4;
        long j5;
        synchronized (this) {
            j = this.mDirtyFlags;
            this.mDirtyFlags = 0;
        }
        Integer num = this.mStatus;
        String str6 = this.mBackText;
        NoticeBean noticeBean = this.mNoticeBean;
        MessageActivity.OnClick onClick = this.mClick;
        long j6 = j & 130;
        boolean z3 = true;
        if (j6 != 0) {
            boolean z4 = ViewDataBinding.safeUnbox(num) == 0;
            if (j6 != 0) {
                j |= z4 ? 2048 : 1024;
            }
            if (z4) {
                i = 8;
                j2 = j & 132;
                if (j2 == 0) {
                    z = str6 == null;
                    if (j2 != 0) {
                        j |= z ? 32768 : 16384;
                    }
                } else {
                    z = false;
                }
                String str7 = null;
                if ((241 & j) == 0) {
                    long j7 = j & 145;
                    if (j7 != 0) {
                        if (noticeBean != null) {
                            str = noticeBean.getName();
                        } else {
                            str = null;
                        }
                        if (str != null) {
                            z3 = false;
                        }
                        if (j7 != 0) {
                            j |= z3 ? 8192 : 4096;
                        }
                    } else {
                        str = null;
                        z3 = false;
                    }
                    long j8 = j & 161;
                    if (j8 != 0) {
                        str2 = noticeBean != null ? noticeBean.getCreatedAt() : null;
                        z2 = TextUtils.isEmpty(str2);
                        if (j8 != 0) {
                            j = z2 ? j | 512 : j | 256;
                        }
                    } else {
                        str2 = null;
                        z2 = false;
                    }
                    str3 = ((j & 193) == 0 || noticeBean == null) ? null : noticeBean.getContent();
                } else {
                    str3 = null;
                    str2 = null;
                    str = null;
                    z3 = false;
                    z2 = false;
                }
                if ((j & 256) == 0) {
                    str4 = TimeUtils.utcToChinaTwo(str2);
                } else {
                    str4 = null;
                }
                j3 = j & 145;
                if (j3 == 0) {
                    if (z3) {
                        str = "系統公告";
                    }
                    str5 = str;
                } else {
                    str5 = null;
                }
                j4 = 132 & j;
                if (j4 != 0) {
                    str6 = null;
                } else if (z) {
                    str6 = "約吧";
                }
                j5 = j & 161;
                if (j5 != 0) {
                    if (z2) {
                        str4 = "";
                    }
                    str7 = str4;
                }
                if ((j & 128) != 0) {
                    this.mboundView1.setOnClickListener(this.mCallback56);
                    this.mboundView11.setOnClickListener(this.mCallback62);
                    this.mboundView2.setOnClickListener(this.mCallback57);
                    this.mboundView3.setOnClickListener(this.mCallback58);
                    this.mboundView4.setOnClickListener(this.mCallback59);
                    this.mboundView5.setOnClickListener(this.mCallback60);
                    this.mboundView6.setOnClickListener(this.mCallback61);
                }
                if (j4 != 0) {
                    TextViewBindingAdapter.setText(this.mboundView1, str6);
                }
                if ((130 & j) != 0) {
                    this.mboundView10.setVisibility(i);
                }
                if (j3 != 0) {
                    TextViewBindingAdapter.setText(this.mboundView7, str5);
                }
                if (j5 != 0) {
                    TextViewBindingAdapter.setText(this.mboundView8, str7);
                }
                if ((j & 193) == 0) {
                    TextViewBindingAdapter.setText(this.mboundView9, str3);
                    return;
                }
                return;
            }
        }
        i = 0;
        j2 = j & 132;
        if (j2 == 0) {
        }
        String str72 = null;
        if ((241 & j) == 0) {
        }
        if ((j & 256) == 0) {
        }
        j3 = j & 145;
        if (j3 == 0) {
        }
        j4 = 132 & j;
        if (j4 != 0) {
        }
        j5 = j & 161;
        if (j5 != 0) {
        }
        if ((j & 128) != 0) {
        }
        if (j4 != 0) {
        }
        if ((130 & j) != 0) {
        }
        if (j3 != 0) {
        }
        if (j5 != 0) {
        }
        if ((j & 193) == 0) {
        }
    }

    @Override // com.grass.p019lv.generated.callback.OnClickListener.Listener
    public final void _internalCallbackOnClick(int i, View view) {
        boolean z = true;
        switch (i) {
            case 1:
                MessageActivity.OnClick onClick = this.mClick;
                if (onClick == null) {
                    z = false;
                }
                if (z) {
                    onClick.btnBack();
                    return;
                }
                return;
            case 2:
                MessageActivity.OnClick onClick2 = this.mClick;
                if (onClick2 == null) {
                    z = false;
                }
                if (z) {
                    onClick2.btnFans();
                    return;
                }
                return;
            case 3:
                MessageActivity.OnClick onClick3 = this.mClick;
                if (onClick3 == null) {
                    z = false;
                }
                if (z) {
                    onClick3.btnLike();
                    return;
                }
                return;
            case 4:
                MessageActivity.OnClick onClick4 = this.mClick;
                if (onClick4 == null) {
                    z = false;
                }
                if (z) {
                    onClick4.btnComment();
                    return;
                }
                return;
            case 5:
                MessageActivity.OnClick onClick5 = this.mClick;
                if (onClick5 == null) {
                    z = false;
                }
                if (z) {
                    onClick5.btnOnline();
                    return;
                }
                return;
            case 6:
                MessageActivity.OnClick onClick6 = this.mClick;
                if (onClick6 == null) {
                    z = false;
                }
                if (z) {
                    onClick6.btnNotice();
                    return;
                }
                return;
            case 7:
                MessageActivity.OnClick onClick7 = this.mClick;
                if (onClick7 == null) {
                    z = false;
                }
                if (z) {
                    onClick7.contactOfficial();
                    return;
                }
                return;
            default:
                return;
        }
    }
}
